import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/login/index.vue'
import layuot from '../views/layuot/index.vue'
import '@/axios/index'

Vue.use(VueRouter)

const routes = [{
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/layuot',
    name: 'layuot',
    component: layuot
  }
]

const router = new VueRouter({
  routes
})

export default router
